package com.domain.dao;

import com.domain.pojo.Follow;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FollowMapper {
    int deleteByPrimaryKey(String id);

    int insert(Follow record);

    int insertSelective(Follow record);

    Follow selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Follow record);

    int updateByPrimaryKey(Follow record);

    List<Follow> selectByUserIdsa(@Param("userId") String userId);

    List<Follow> selectByUserAndPublish(@Param("userId") String userId, @Param("publishId") String publishId);

    int deleteByUsersIdAndPublishId(@Param("usersId") String usersId, @Param("publishId") String publishId);

    List<Follow> selectByPublishId(@Param("publishId") String publishId);
}